<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateUploadTemplateHistoriesTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('upload_template_histories', function (Blueprint $table) {
            $table->increments('id');
            $table->string('upload_no', 100)->comment('上传批次');
            $table->integer('paneltpl_id')->default(0)->nullable()->unsigned()->comment('panelTpl模板ID');
            $table->string('url', 100)->nullable()->comment('文件地址');
            $table->string('size', 50)->nullable()->comment('文件大小');
            $table->integer('user_id')->comment('操作人员');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('upload_template_histories');
    }
}
